import request from '@/utils/request'

// 查询心情列列表
export function listMood(query) {
  return request({
    url: '/digital/mood/list',
    method: 'get',
    params: query
  })
}

// 查询心情列详细
export function getMood(id) {
  return request({
    url: '/digital/mood/' + id,
    method: 'get'
  })
}

// 新增心情列
export function addMood(data) {
  return request({
    url: '/digital/mood',
    method: 'post',
    data: data
  })
}

// 修改心情列
export function updateMood(data) {
  return request({
    url: '/digital/mood',
    method: 'put',
    data: data
  })
}

// 删除心情列
export function delMood(id) {
  return request({
    url: '/digital/mood/' + id,
    method: 'delete'
  })
}

// 导出心情列
export function exportMood(query) {
  return request({
    url: '/digital/mood/export',
    method: 'get',
    params: query
  })
}